package cn.islys.demospringboot.mapper;

import cn.islys.demospringboot.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select * from user")
    public List<User> getUsers();

    @Select("select * from user where id=#{id}")
    public List<User> getUserById(int id);
}
